let plugins = [ [
  "component",
  {
    "libraryName": "element-ui",
    "styleLibraryName": "theme-chalk"
  }
]]

if (process.env.NODE_ENV === 'production') {
  //exclude(忽略)
  plugins.push(["transform-remove-console", { "exclude": ["error", "warn"] }])
}


module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset',
    ["@babel/preset-env", { "modules": false }]
  ],
  plugins: plugins
}

